package com.kingdee.eas.custom.bpmworkflow.base;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractBaseResponseFacadeControllerBean extends AbstractBizControllerBean implements BaseResponseFacadeController
{
    protected AbstractBaseResponseFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("49A4C581");
    }

    public String CreateResult(Context ctx, String strBTID, String strBOID, String bSuccess, String iProcInstID, String procURL, String strMessage, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("773c1dff-15e5-4869-997c-3ba1e16bfb6c"), new Object[]{ctx, strBTID, strBOID, bSuccess, iProcInstID, procURL, strMessage, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_CreateResult(ctx, strBTID, strBOID, bSuccess, iProcInstID, procURL, strMessage, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _CreateResult(Context ctx, String strBTID, String strBOID, String bSuccess, String iProcInstID, String procURL, String strMessage, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String Audit(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String eAction, String strComment, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0f62fd3c-b385-4eca-8139-f5d7895df7c1"), new Object[]{ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, eAction, strComment, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_Audit(ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, eAction, strComment, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _Audit(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String eAction, String strComment, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String UpdateBusinessData(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String strXML, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2dc83995-97ae-440d-bed7-e1381805c05b"), new Object[]{ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, strXML, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_UpdateBusinessData(ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, strXML, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _UpdateBusinessData(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String strXML, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String Rework(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String eAction, String strComment, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("bcd3e08a-6320-4165-83b4-b9f9e04f490d"), new Object[]{ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, eAction, strComment, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_Rework(ctx, strBTID, strBOID, iProcInstID, strStepName, strApproverId, eAction, strComment, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _Rework(Context ctx, String strBTID, String strBOID, String iProcInstID, String strStepName, String strApproverId, String eAction, String strComment, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String ApproveClose(Context ctx, String strBTID, String strBOID, String iProcInstID, String eProcessInstanceResult, String strComment, String dtTime, String soapHeader, String auditorNum) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("14746c31-34f1-4e13-967b-135af176d24f"), new Object[]{ctx, strBTID, strBOID, iProcInstID, eProcessInstanceResult, strComment, dtTime, soapHeader, auditorNum});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_ApproveClose(ctx, strBTID, strBOID, iProcInstID, eProcessInstanceResult, strComment, dtTime, soapHeader, auditorNum);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _ApproveClose(Context ctx, String strBTID, String strBOID, String iProcInstID, String eProcessInstanceResult, String strComment, String dtTime, String soapHeader, String auditorNum) throws BOSException
    {    	
        return null;
    }

}